package com.ecut.property_project.mapper;

import com.ecut.property_project.model.ApplicationForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApplicationFormMapper {
    int deleteByPrimaryKey(Integer formId);

    int insert(ApplicationForm record);

    int insertSelective(ApplicationForm record);
    int getTenantCount();

    List<ApplicationForm> selectAll();

    List<ApplicationForm> selectByPage(Integer page, Integer pageSize);

    ApplicationForm selectByPrimaryKey(Integer formId);

    List<ApplicationForm> selectByApplicantOrTelOrAddress(
            @Param("applicant") String applicant, @Param("tel") String tel, @Param("address") String address,
            @Param("page") Integer page, @Param("pageSize") Integer pageSize);

    int updateByPrimaryKeySelective(ApplicationForm record);

    int updateByPrimaryKey(ApplicationForm record);
}